Technical Q&As


TB34 - White Backgrounds for Dialog editText Items
(13-October-97)


Q I would like to have a colored background for my dialog box but I would like the TextEdit fields in my dialog box to be white. Is this possible to do? Is there some sample code available?

A Generally speaking, this coloring is achieved via resources, not code. In addition to the 'dctb' resource, you need to create an 'ictb' resource. To download a sample of an application using this kind of resource click here.

The 'ictb' resource is documented on page 6-76 and starting again on page 6-158 of
Inside Macintosh: Macintosh Toolbox Essentials. The best way I know of to create and edit 'ictb' resources is with Resorcerer, but you can also create them with a '.r' file compiled by either MPW's Rez or the Metrowerks CodeWarrior equivalent.

Here are some references to web sites for the aforementioned tools:

-- Pete Gontier
Worldwide Developer Technical Support

Technical Q&As
Previous Question | Next Question | Contents

To contact us, please use the Contact Us page.